import request from '@/utils/request'

export function getInfo(data) {
  return request({
    url: '/scm/stockProcurementForecast/page-list',
    method: 'post',
    data
  })
}

export function checkList(data) {
  return request({
    url: '/scm/stockProcurementForecast/page-detail',
    method: 'post',
    data
  })
}
export function deleteAll(data) {
  return request({
    url: '/scm/stockProcurementForecast/delete',
    method: 'get',
    data
  })
}
export function toVoid(data) {
  return request({
    url: `/scm/stockProcurementForecast/delete`,
    method: 'post',
    data
  })
}
export function impCustomerForecastData(file) {
  return request({
    url: '/scm/stockProcurementForecast/importExcel',
    method: 'post',
    data: file
  })
}

export function getMpsList() {
  return request({
    url: '/customer_forecast/selectMpsCurrentList',
    method: 'get'
  })
}
export function hezhun(data) {
  return request({
    url: `/scm/stockProcurementForecast/checkPass`,
    method: 'get',
    params: data
  })
}
export function sendemailFun(data) {
  return request({
    url: `/scm/stockProcurementForecast/sendEmail`,
    method: 'post',
    data
    //  params:data
  })
}
